<?php

use swap\visitor;
use swap\url_manager;

class common_header_helper extends swap\helper {
	
	public static function run() {
		$module_name = visitor::get_module_name();
		$header_nav = array(
			array('name' => '填写简历', 'url' => url('my-site/index'), 'show' => ('my' === $module_name)),
			array('name' => '职位搜索', 'url' => url('sou-site/index'), 'show' => ('sou' === $module_name)),
			array('name' => '简历中心', 'url' => url('student-site/index'), 'show' => ('list' === $module_name)),
			array('name' => '公考咨询', 'url' => url('student-site/index'), 'show' => ('civil' === $module_name)),
			array('name' => '职场八卦', 'url' => url('student-site/index'), 'show' => ('article' === $module_name)),
			array('name' => '店面租售', 'url' => url('student-site/index'), 'show' => ('shop' === $module_name)),
		);
		self::set('header_nav', $header_nav);
		
		self::set('www_domain', url_manager::www_url(''));
        
		self::render();
	}
	
}